package com.sdy.healthcode.biz.model;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.sdy.common.model.BaseModel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sdy.common.utils.DateUtil;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author cgj
 * @since 2020-03-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class BlackList extends BaseModel {
    private static final long serialVersionUID = 1L;

    /**
     * 序号
     */
    @TableId
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 手机号
     */
    private String phoneNumber;

    /**
     * 用户名称
     */
    private String userName;

    /**
     * 封禁时间
     */
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date bannedTime;

    /**
     * 解封时间
     */
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date outBannedTime;

    /**
     * 原因
     */
    private String reason;

}
